//
//  ImageClipHomeViewController.m
//  TSImageFilterDemo
//
//  Created by ciyouzen on 2017/2/25.
//  Copyright © 2017年 dvlproad. All rights reserved.
//

#import "ImageClipHomeViewController.h"
#import <TSDemo_ImageFilter/TSImageFilterViewController.h>

// 图片缩放与位置调整+添加蒙版+裁剪
#import "TSClipMaskImageAdjustGRViewController.h"
#import "ImageClipEnterViewController.h"
#import "CutImageViewController.h"



@interface ImageClipHomeViewController () {
    
}

@end

@implementation ImageClipHomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.navigationItem.title = NSLocalizedString(@"图片裁剪", nil);
    

    NSMutableArray *sectionDataModels = [[NSMutableArray alloc] init];
    
   
    // 图片裁剪
    {
        CQDMSectionDataModel *sectionDataModel = [[CQDMSectionDataModel alloc] init];
        sectionDataModel.theme = @"测试 图片裁剪 等";
        
        {
            CQDMModuleModel *module = [[CQDMModuleModel alloc] init];
            module.title = @"图片裁剪：CJImageClipAdjustGRView";
            module.classEntry = [TSClipMaskImageAdjustGRViewController class];
            [sectionDataModel.values addObject:module];
        }
        
        {
            CQDMModuleModel *module = [[CQDMModuleModel alloc] init];
            module.title = @"图片裁剪";
            module.classEntry = [ImageClipEnterViewController class];
            [sectionDataModel.values addObject:module];
        }
        
        {
            CQDMModuleModel *module = [[CQDMModuleModel alloc] init];
            module.title = @"图片裁剪";
            module.classEntry = [CutImageViewController class];
            [sectionDataModel.values addObject:module];
        }
        [sectionDataModels addObject:sectionDataModel];
    }
    
    self.sectionDataModels = sectionDataModels;
}


#pragma mark - Touch
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
    [super touchesBegan:touches withEvent:event];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
